package com.jxnu.duewang.zmly.zmly.adapter;

import androidx.databinding.BindingAdapter;
import android.widget.ImageView;

import com.squareup.picasso.Picasso;

/**
 * Project Zmly
 * Author Duewang
 * Time 2016/12/4 0004
 */

public class ImageBindingAdapter {
    @BindingAdapter("loadUrl")
    public static void loadImage(ImageView view,String url){
        Picasso.with(view.getContext()).load(url).into(view);
    }
}
